import Vue from 'vue'
import VueI18n from 'vue-i18n'

Vue.use(VueI18n)

const messages = {
  en: {
    nav: {
      home: 'Home',
      download: 'Download',
      blog: 'Blog',
      faqs: 'FAQs'
    },
    home: {
      title: 'Online Video Downloader',
      subtitle: 'Download videos from various platforms',
      features: {
        watermark: 'Watermark Free',
        quality: 'Support 4K',
        speed: 'High Speed Download'
      },
      enterUrl: 'Enter video URL',
      parse: 'Start Parsing',
      pleaseEnterUrl: 'Please enter video URL',
      parseSuccess: 'Parsing successful',
      parseFailed: 'Parsing failed',
      parseError: 'Network error, please try again',
      supportedPlatforms: 'Supported Platforms',
      selectQuality: 'Select Video Quality',
      download: 'Download Video',
      pleaseSelectQuality: 'Please select video quality',
      downloadStarted: 'Download started',
      downloadError: 'Download failed, please try again',
      parseTime: 'Parse Time',
      preview: 'Preview Video',
      videoPreview: 'Video Preview',
      selectQualityFirst: 'Please select video quality first',
      previewError: 'Video preview failed, please try again',
      downloadProgress: 'Download Progress'
    }
  },
  zh: {
    nav: {
      home: '首页',
      download: '下载',
      blog: '博客',
      faqs: '常见问题'
    },
    home: {
      title: '在线视频下载器',
      subtitle: '从多个平台下载视频',
      features: {
        watermark: '无水印',
        quality: '支持4K',
        speed: '高速下载'
      },
      enterUrl: '请输入视频链接',
      parse: '开始解析',
      pleaseEnterUrl: '请输入视频链接',
      parseSuccess: '解析成功',
      parseFailed: '解析失败',
      parseError: '网络错误，请重试',
      supportedPlatforms: '支持的平台',
      selectQuality: '选择视频质量',
      download: '下载视频',
      pleaseSelectQuality: '请选择视频质量',
      downloadStarted: '开始下载',
      downloadError: '下载失败，请重试',
      parseTime: '解析时间',
      preview: '预览视频',
      videoPreview: '视频预览',
      selectQualityFirst: '请先选择视频质量',
      previewError: '视频预览失败，请重试',
      downloadProgress: '下载进度'
    }
  }
}

export default new VueI18n({
  locale: 'zh',
  fallbackLocale: 'zh',
  messages
}) 